package com.cicc.beergamevirtualsimulationsystem.model.echarts.dto;

import com.cicc.beergamevirtualsimulationsystem.annotation.EnumValid;
import com.cicc.beergamevirtualsimulationsystem.common.constant.EchartsConstant;
import com.cicc.beergamevirtualsimulationsystem.common.enums.userTypeEnum.RoleType;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @ClassName EchartsDto
 * @Description TODO
 * @Author 转轮王
 * @Date 2024/11/7 13:56
 * @Version 1.0
 */

@Data
public class EchartsDto {

    @NotNull(message = EchartsConstant.ROOM_ID_ERROR)
    @Min(value = 1, message = "房间ID必须大于等于1")
    private String roomId;

    @EnumValid(enumClass = RoleType.class,message = EchartsConstant.USER_ROLE_ERROR)
    private Integer userRole;

    @NotNull(message = EchartsConstant.CHART_TYPE_ERROR)
    private String chartType = "DEFAULT_TYPE";;

    private Integer period;
}
